{include file="public/header"/}
{page:location}
{page:pos label="个人资料"/}
{/page:location}
<div id="container">
    {page:header title="个人资料"}
    {/page:header}

    {form:form submit=":url($Request.action)" class="am-g-fixed" valid="true"}

    {form:fieldset title="登录信息"}
        {form:label label="用户名"}
            <div class="am-form-help">{$admin.username}</div>
        {/form:label}
        {form:input type="password2" label="旧密码" name="old_pass" value="" tips="请输入登录密码" help="修改个人资料需要输入原始密码" valid="required|length:6,16" /}
        {form:input type="password2" label="新密码" name="new_pass" value="" tips="新密码留空表示不修改密码" help="密码长度为6~16个字符" /}
    {/form:fieldset}

    {form:fieldset title="详细资料"}
        {form:label label="选择头像"}

        {/form:label}
        {form:input label="真实姓名" type="text" name="realname" value="$admin['realname']" tips="请填写真实姓名" help="" valid="required" help="必填, 请输入您的真实姓名, 以便联系" /}
        {form:radio label="性别" options="$gender" name="gender" value="$admin['gender']" default="0" help="" valid="required"/}
        {form:input label="手机号码" type="text" name="mobile" value="$admin['mobile']" tips="请填写手机号码" help="" valid="mobile" help="手机号码只能输入11位的数字"/}
        {form:input label="E-mail" type="email" name="email" value="$admin['email']" tips="请填写邮箱地址" help="" /}
    {/form:fieldset}

    {/form:form}
</div>
{include file="public/footer"/}